home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / gfx / x11 / xmountains.lha / src / global.c < prev    next >
C/C++ Source or Header  |  2003-06-09  |  2KB  |  69 lines

  1. #include "crinkle.h"
  2. #include "paint.h"
  3.  
  4. Fold *top;
  5. int levels = 10;
  6. int stop = 2;
  7. int smooth = 1;
  8. int cross = TRUE;
  9. int slope = 1;
  10. int snooze_time = 10;
  11. int n_col=DEF_COL;
  12. int band_size=BAND_SIZE;
  13. int request_clear = FALSE;
  14. #ifdef USE_E_EVENTS
  15. int e_events = FALSE;
  16. #else
  17. int e_events = FALSE;
  18. #endif
  19. float fdim = 0.65;
  20. float mix   =0.0;
  21. float midmix=0.0;
  22. Height start;      /* starting value for the surface */
  23. Height mean=0.0;   /* mean value of surface */
  24. Height varience;   /* rough estimate of the height of the range */
  25. Height shift=0.5;    /* offset from calcalt to artist coordinates */
  26. Height delta_shadow; /* offset of shadow at each step */
  27. float stretch=0.6;   /* vertical stretch */
  28. float contour = 0.3;
  29. float ambient = 0.3;  /* level of ambient light */
  30. float contrast = 1.0; /* contrast,
  31.                        * increases or decreases effect of cosine rule */
  32. float vfract   = 0.6; /* relative strength of vertical light relative
  33.                         * to the main light source
  34.                         */
  35. float altitude = 2.5;
  36. float distance = 4.0;
  37. double phi=(40.0 * PI)/180.0; /* angle of the light (vertical plane)*/
  38. double alpha=0.0;             /* angle of the light (horizontal plane)
  39.                                * must have -pi/4 < alpha < pi/4
  40.                                */
  41. double shadow_slip;
  42. double shadow_register=0.0;
  43. double cos_phi;
  44. double sin_phi;
  45. double tan_phi;
  46. double x_fact;
  47. double y_fact;
  48. Height sealevel = 0.0;
  49. Height forceheight  = -1.0;
  50. int width;        /* width of the landscape, (function of levels) */
  51. int seed=0;       /* zero means read the clock */
  52.  
  53. /*
  54.  * viewport parameters
  55.  */
  56. int height;                       /* height of the screen */
  57. double vangle;                    /* view angle 0 == horizontal
  58.                                    *increase to look down
  59.                                    */
  60. double tan_vangle;                                     
  61. float vscale;           /* rescale physical height by this amount. */
  62. float viewpos;        /* position of viewpoint */
  63. float viewheight;      /* height of viewpoint */
  64. float focal;                  /* focal length, calc to preserve aspect ratio */
  65.  
  66. Height *shadow;               /* height of the shadows */
  67. Height *a_strip, *b_strip;    /* the two most recent strips */
  68.  
  69.